package com.gigi.common;

/**
 * 常量类
 *
 * @author Gigi
 */
public final class Constant {

    /**
     * 是否登录
     */
    public static final String IS_LOGIN = "isLogin";

    /**
     * 是否管理员
     */
    public static final String IS_ADMIN = "isAdmin";

    /**
     * 密码加密盐值
     */
    public static final String SALT = "gigi";

    /**
     * 用户登录态session key
     */
    public static final String USER_LOGIN_SESSION_KEY = "userLoginState";

    /**
     * 推荐接口 redis缓存 key【匹配标签相似用户】
     */
    public static final String USER_RECOMMEND_MATCH_CACHE_KEY = "userHub:user:recommend:match:userId:{}:pageNum:{}:pageSize:{}";

    /**
     * 推荐接口 redis缓存 key【全量】
     */
    public static final String USER_RECOMMEND_FULL_CACHE_KEY = "userHub:user:recommend:full:pageNum:{}:pageSize:{}";

    /**
     * 写缓存job redisson分布式锁 key
     */
    public static final String PRE_CACHE_LOCK = "userHub:preCacheJob:lock";

    /**
     * 加入队伍 redisson分布式锁 key
     */
    public static final String JOIN_TEAM_LOCK = "userHub:joinTeam:lock";

}
